﻿
namespace EasyNet.Solr.Commons.Params
{
    public struct SpatialParams
    {
        public const string POINT = "pt";
        public const string DISTANCE = "d";

        /// <summary>
        /// the field that contains the points we are measuring from "pt"
        /// </summary>
        public const string FIELD = "sfield";

        /// <summary>
        /// km - kilometers
        /// mi - miles
        /// </summary>
        public const string UNITS = "units";

        /// <summary>
        /// The distance measure to use.
        /// </summary>
        public const string MEASURE = "meas";

        /// <summary>
        /// The radius of the sphere to use to in calculating spherical distances like Haversine
        /// </summary>
        public const string SPHERE_RADIUS = "sphere_radius";
    }
}
